<template>
  <div>
    <h2>About计数：{{ counter }}</h2>
    <button @click="increment">+1</button>
    <button @click="decrement">-1</button>
  </div>
</template>

<script>
  import useCounter from '../hooks/useCounter';
import useTitle from '../hooks/useTitle';
export default {
  setup() {

    // 修改标题
    useTitle("关于")
    return {
      ...useCounter()
    }
  }
  
}
</script>

<style>

</style>